<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<f:view>
	<h:head>
		<title><ui:insert name="title">Default title</ui:insert>
		</title>
		<h:outputStylesheet library="css" name="style.css"></h:outputStylesheet>
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
	</h:head>

	<h:body>

		<p:growl />

		<div id="main_container">

			<div id="header">
				<div id="logo">
					<h:graphicImage library="images" name="logo.png"></h:graphicImage>
				</div>
				<div class="marca">
					<h:graphicImage library="images" name="marca.png"></h:graphicImage>
				</div>
				<div class="user_information" style="padding: 10px; clear: both;">
					<h:form>
						<h:outputText value="Usuario: #{login.usuario.nome} -" rendered="#{not empty login.usuario.id}" /> <h:commandLink action="#{login.deslogar}" value="logout" rendered="#{not empty login.usuario.id}" styleClass="logout"/>
					</h:form>
				</div>
				<div id="menu">
					<ul>
						<ui:insert name="menu">
							<h:form>
								<!--  
								<li><h:commandLink title="Voltar para pagina principal" value="Voltar para Home" action="login" immediate="true" ></h:commandLink></li>
								-->
							</h:form>
						</ui:insert>
					</ul>
				</div>
			</div>
			
			<div id="content">
				<div id="submenu">
					<ui:insert name="submenu">
						<p:menubar>
							<p:submenu label="Pesquisa"
								icon="ui-icon ui-icon-extlink">
								<p:menuitem value="Ligacoes" url="/pesquisa/pesquisaLigacoes.xhtml"></p:menuitem>
								<p:menuitem value="Mensagens (SMS)" url="/pesquisa/pesquisaMensagens.xhtml"></p:menuitem>
								<p:menuitem value="Uso de Internet" url="/pesquisa/pesquisaInternet.xhtml"></p:menuitem>
							</p:submenu>
							
							<p:submenu label="Configurar Alertas"
								icon="ui-icon ui-icon-extlink">
								<p:menuitem value="Consultar Alertas" url="/alertas/index.xhtml" ></p:menuitem>
							</p:submenu>
						</p:menubar>
					</ui:insert>
				</div>
			
				<ui:insert name="content">
			    	
				</ui:insert>
			</div>
		</div>


	</h:body>

</f:view>
</html>